package com.hlhj.carview.presenter

import android.content.Context
import com.example.mymvp.mvp.BasePresenter
import com.hlhj.carview.Iview.AdvDetailView
import com.hlhj.carview.bean.AdvDetailBean
import com.hlhj.carview.module.AdvDetailModule

/**
 * Created by Never Fear   on 2018\12\24 0024.
Never More....
 */
class AdvDetailPresenter :BasePresenter<AdvDetailModule,AdvDetailView>(), AdvDetailView {
    override fun createModule() {
        module=AdvDetailModule()
        module.lis=this
    }
    fun choucheng(advertising_id:Int,advertising_name:String,c:Context){
        module?.choucheng(advertising_id, advertising_name, c)
    }
    fun getDetail(id:Int,c:Context){
        module?.getDetail(id,c)
    }
    override fun setDetail(advDetailBean: AdvDetailBean) {
        view?.setDetail(advDetailBean)
    }
}